package com.book.manager.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.book.manager.base.result.Result;
import com.book.manager.dto.*;
import com.book.manager.model.Book;

import java.util.List;

public interface BookService extends IService<Book> {

    Result<Book> getBookDetailWithBookId(BooKIdReq req);

    Result<IPage<Book>> listBookWithPageKeyMsg(PageReq pageReq);

    Result<BorrowBookResp> borrowBookList(BorrowBookReq req);

    Result<BorrowBookResp> backBookList(BorrowBookReq req);

    Result<List<BookBorrowDetail>> listBookBorrowDetailWithBookId(BooKIdReq req);

    Result<List<BookBorrowDetail>> listBookBorrowDetailWithMe();
}
